import request from '@renderer/utils/request';
import { AxiosPromise } from 'axios';
import { InstantMessagingVO, InstantMessagingForm, InstantMessagingQuery } from '@renderer/api/system/instantMessaging/types';




export const messageNotReadList = (): AxiosPromise<any> => {
  return request({
    url: '/system/instantMessaging/messageNotReadList',
    method: 'get',
  });
};

export const notReadMessageCount = (): AxiosPromise<any> => {
  return request({
    url: '/system/instantMessaging/notReadMessageCount',
    method: 'get',
  });
};


export const updateReadById = (id : string): AxiosPromise<any> => {
  return request({
    url: '/system/instantMessaging/updateReadById?id=' + id,
    method: 'get',
  });
};

export const setReadAll = (): AxiosPromise<any> => {
  return request({
    url: '/system/instantMessaging/readAll',
    method: 'get',
  });
};



